package main

import (
	"bytes"
	"fmt"
)

func main() {
	var b bytes.Buffer
	a := make([]byte, 5)
	b.Write([]byte("hello world."))
	fmt.Printf("b = %v\n", &b)
	b.Read(a)
	fmt.Printf("b = %v\n", &b)
	fmt.Printf("a = %v\n", a)
	b.Write([]byte("haha, I'm allen!"))
	fmt.Printf("b = %v\n", &b)

}
